package handlers

import (
	"github.com/gin-gonic/gin"
	"pic-text-mgr/models"
)

func List(c *gin.Context) {
	var image []models.Image
	models.DB.Find(&image)
	c.JSON(200, gin.H{
		"code": 200,
		"list": image,
		"msg":  "查询成功",
	})
}
